package jvm;

import tech.medivh.classpy.classfile.ClassFile;

import java.io.File;
import java.util.Arrays;


public class Hotspot {

    private String mainClass;

    private BootstrapClassLoader bootstrapClassLoader;

    public Hotspot(String mainClass,String classPath){
        this.mainClass = mainClass;
        this.bootstrapClassLoader = new BootstrapClassLoader(Arrays.asList(classPath.split(File.pathSeparator)));
    }

    public void start() throws ClassNotFoundException{
        ClassFile mainclassFile = bootstrapClassLoader.loadClass(mainClass);
    }


}
